<?php
/**
 * 手机广告表模型
 */
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use App\Models\Traits\BaseModel;
use Illuminate\Database\Eloquent\SoftDeletes;

class GpsadvAdver extends Model
{

    use BaseModel; //基础模型
    use SoftDeletes; //软删除
    //数据表名称
    protected $table = 'gpsadv_advers';
    //数据项名称
    protected $itemName = '手机广告表';
    //批量赋值白名单
    protected $fillable = [
       'user_id',
       'title',
       'expire_start_time',
       'expire_end_time',
       'banner_img',
       'advers_url'
    ];
    //输出隐藏字段
    protected $hidden = [
       'deleted_at'
    ];
    //日期字段
    protected $dates = [
       'expire_start_time',
       'expire_end_time',
       'created_at',
       'updated_at',
       'deleted_at'
    ];
    //字段值map
    protected $fieldsShowMaps = [];
    //字段默认值
    protected $fieldsDefault = [
        'title' => '',
        'banner_img' => '',
        'advers_url' => ''
    ];
    //字段说明
    protected $fieldsName = [
        'id' => 'ID',
        'user_id' => '用户ID',
        'title' => '广告标题',
        'expire_start_time' => '广告开始时间',
        'expire_end_time' => '广告结束时间',
        'banner_img' => '广告图片',
        'advers_url' => '广告跳转地址',
        'created_at' => '创建时间',
        'updated_at' => '修改时间',
        'deleted_at' => '删除时间'
    ];




}
